<%@ page import="java.util.*, java.io.*, java.text.*"%>
<%@ page import="java.io.OutputStream,java.util.Vector"%>
<%@ page import="com.db.tracker.vo.*,com.db.tracker.util.*"%>
<%@ page import="com.db.tracker.vo.ReleaseVO"%>



<%

String releaseName = (String)request.getParameter("releaseName")==null?(request.getParameter("hiddenrelname")==null?"":request.getParameter("hiddenrelname")):request.getParameter("releaseName");	

response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition","attachment; filename=CR_Notes_of_Release.xls" );



try{
		DBUtil dbutil = new DBUtil(getServletContext());

		
		Vector crnotesvector = dbutil.getReleaseCRNotes(releaseName);
				

	    ExcelUtilities excelutil = new ExcelUtilities(getServletContext());
		excelutil.ExportCRNotes(crnotesvector,response.getOutputStream());

		response.flushBuffer();
		System.out.println(" ##### End of Report Generation of release CR notes report ######");
  } 
catch(Exception e){
		System.out.println("Exception in ExportToExcelForDBA.jsp");
  }

%>
